package cn.hnh.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author HuangNianHong
 * @Time 2020/12/11 20:56
 */

@Controller
@RequestMapping("/admin")
public class Admin {

    @RequestMapping("/")
    public String toindex(){
        return "admin/index";
    }

    @RequestMapping("/article/publish")
    public String toPublish(){
        return "admin/article_edit";
    }

    @RequestMapping("/article/manage")
    public String toManage(){
        return "admin/article_manage";
    }

    @RequestMapping("/logs")
    public String toLog(){
        return "admin/logs";
    }

    @RequestMapping("/article/comments")
    public String toCommetns(){
        return "admin/article_comment";
    }

    @RequestMapping("/tags")
    public String toTags(){
        return "admin/tags";
    }

    @RequestMapping("/categories")
    public String toCategories(){
        return "admin/categories";
    }

    @RequestMapping("/links")
    public String toLinks(){
        return "admin/links";
    }

    @RequestMapping("/filesave")
    public String toFileSave(){
        return "admin/filesave";
    }

    @RequestMapping("/article/edit/*")
    public String toEdit(){
        return "admin/article_update";
    }

}
